<template>
  <div class="home">
    <!-- 主体 -->
    <div class="contentBox flexColumn">
      <!-- 头部信息 -->
      <div class="topHeadBar flexRow">
        <span class="flexNum titleMain">
          <div class="loginImg"></div>
        </span>
        <div class="flexRow">

          <div class="mangmentPeple">您好：管理员<span class="welcom"></span></div>
          <div class="outExist" @click="ss">退出</div>

        </div>
      </div>
      <!-- 主体信息 -->
      <div class="bodyBar flexRow flexNum">
        <!-- 左侧导航 -->
        <div class="leftNavigation flexColumn" style="width:175px !important">
          <el-menu router unique-opened
            default-active="1"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose">
            <!-- 一级菜单 -->
            <el-menu-item index="/gisMap">GIS集控</el-menu-item>
            <!-- 一级菜单 -->
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-setting"></i>系统配置
              </template>
              <!-- 有下级菜单的二级菜单 -->
              <!-- <el-submenu index="1-1">
                <template slot="title">资产管理</template>
                <el-menu-item index="1-1-1">组件库</el-menu-item>
                <el-menu-item index="1-1-2">组件类型管理</el-menu-item>
                <el-menu-item index="/assetTrafficControlEquipment">交通控制设施</el-menu-item>
                <el-menu-item index="/assetTrafficSignalScheme">交通信号方案</el-menu-item>
                <el-menu-item index="1-1-5">交通检测设施</el-menu-item>
                <el-menu-item index="/videoSurveillanceEquipment">电警监控设施</el-menu-item>
                <el-menu-item index="1-1-7">交通诱导设施</el-menu-item>
                <el-menu-item index="1-1-8">机房设施</el-menu-item>
                <el-menu-item index="1-1-9">交通安全设施</el-menu-item>
                <el-menu-item index="1-1-10">机房管理</el-menu-item>
                <el-menu-item index="1-1-11">列表页是否显示模块名</el-menu-item>
              </el-submenu> -->
              <!-- 无下级菜单的二级菜单 -->
              <el-menu-item index="/assetTrafficControlEquipment">资产管理</el-menu-item>
              <!-- <el-submenu index="1-2">
                  <template slot="title">单位管理</template>
              </el-submenu> -->
              <el-menu-item index="/unitManagement">单位管理</el-menu-item>
              <!-- <el-submenu index="1-3">
                  <template slot="title">角色管理</template>
              </el-submenu> -->
              <el-menu-item index="/ruleManagement">角色管理</el-menu-item>
              <el-submenu index="1-4">
                  <template slot="title">权限管理</template>
              </el-submenu>
              <el-menu-item index="/userManagement">用户管理</el-menu-item>
              <el-menu-item index="/logManagement">日志管理</el-menu-item>
              <el-submenu index="1-7">
                <template slot="title">协同单位管理</template>
              </el-submenu>
              <el-submenu index="1-8">
              <template slot="title">字典管理</template>
              <el-menu-item index="/AIDeviceManagement">AI设备管理</el-menu-item>
              </el-submenu>
            </el-submenu>
            <!-- 一级菜单 -->
            <el-submenu index="2">
              <template slot="title"><i class="el-icon-setting"></i>其他</template>
              <!-- 无下级菜单的二级菜单 -->
              <el-menu-item-group>
                <el-menu-item index="2-1">gis</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group>
                <el-menu-item index="2-2">gis单位管理</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </div>
        <!-- 右侧主体 -->
        <div class="subject flexNum flexColumn">
          <div class="title">
            <div class="word">{{title}}</div> 
          </div>    
          <router-view class="flexNum flexColumn" style="padding: 0 15px;"></router-view>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "axios";
export default {
    name: "home",
    data() {
        return {
          title: "标题"
        };
    },
    methods: {
        handleClose() {},
        handleOpen() {},
        checkDialog() {

        },
        ss(){
           axios.get("wit_harns_service/code/")
        }
    },
    created() {

    }
};
</script>
